fortran错误记录

您所在的位置:网站首页 fortran 基础 fortran错误记录

fortran错误记录

2023-06-05 23:57| 来源: 网络整理| 查看: 265

A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association.   [PCOLS]     real(r8),            intent(in)    :: taux(pcols)               ! x surface stress  [ N/m2 ] -----------------------------------------------^

这可能是由于索引中的变量没有定义的原因

 warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value.   [PBLH]

这是由于intent(out)的变量没有计算出值,会警告一下,但是不会报错。

cas-esm 在运行过程中的一些问题

application called MPI_Abort(MPI_COMM_WORLD, 1) - process 801  ENDRUN:ADDFLD:  USTAR already on list  ENDRUN:ADDFLD:  USTAR already on list  

这是因为多次进行addfld()的原因

pbl_iap.F90(56): error #6401: The attributes of this name conflict with those made accessible by a USE statement.   [CPAIR]         real(r8) :: cpair     ! specific heat of dry air

这是由于use 了别的module 的变量,就不需要再定义了。

pbl_iap.F90(320): error #6417: The dimensions of this array have been defined more than once.   [SLV]     real(r8) :: slv(pcols,pver)                                 !湿净力能

这是因为多次定义的原因,直接删掉其中一个就好了

pbl_iap.F90(369): error #6366: The shapes of the array expressions do not conform.   [SLV]      slv(:ncol,:pver) = sl(:ncol,:pver) * ( 1._r8 + zvir*ptend%q(:ncol,:pver,1) ) 

数组表达式的形状不一致

pbl_iap.F90(1969): error #6414: This PARAMETER constant name is invalid in this context.   [CPAIR]   cpair = cpair_in

由于module中use 了cpair

module中的子程序不能再用同样的变量名字了。

pbl_iap.F90(852): error #6633: The type of the actual argument differs from the type of the dummy argument.                 call proport_adjust(latvals(i),10*3.14/180,5*3.14/180,0.0,latvals(i) )

这个表示实参和虚参的数据类型不一致,不要直接把数字当变量放在实参上这样可能报错.

 call outfld('hsb_coare',    hsb, pcols, lchnk) 

pbl_iap.F90(561): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [FIELD] pbl_iap.F90(561): error #8284:如果实际参数为标量,则虚拟参数应为标量,除非实际参数为字符类型或非假定形状、指针或多态的数组元素。(场)



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3